/*公共样式*/

* {
    box-sizing: border-box;
    /*去除默认样式*/
    padding: 0;
    margin: 0;
}

body {
    /*设置图片*/
    background-image:url(200.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    /*设置和父元素一样高*/
    height: 100%;
}

html {
    height:100%
}

/* 设置状态栏 */
.nav {
    width:100%;
    height: 50px;
    background-color:rgba(50, 50, 50, 0.2);
    color:white;

    /* 使用弹性布局, 让里面的元素水平方向排列 */
    display: flex;
    align-items: center;
}

.nav img {
    width:45px;
    height:45px;
    margin-left: 20px;
    margin-right: 10px;
    border-radius: 20px;
}

.nav a {
    color:white;
    /* 去掉 a 标签的下划线 */
    text-decoration: none;
    padding:0 10px;
}

.nav .spacer {
    width:70%;
}

.container {
    width: 1000px;
    margin:0 auto;
     /* 记得两侧需要有空格 */
    height:calc(100% - 50px);

    /*设置弹性布局*/
    display:flex;
    /* background-color: gray; */

    /*设置间隔,等间距铺开*/
    justify-content: space-between;
}

.container_left {
    height: 100%;
    width: 200px;
}

.container_right {
    height:100%;
    width: 795px;
    background-color: rgba(255,255,255, 0.8);

    padding: 20px;  
    border-radius: 10px;

    /*设置滚动条*/
    overflow: auto;
}

/* 设置用户信息*/
.card {
    background-color: rgba(255,255,255, 0.8);
    border-radius: 10px;
    padding:30px;
}

.card img {
    width:140px;
    height:140px;
    border-radius: 70px;
}

.card h3 {
    /*居中*/
    text-align: center;
    padding:10px;
}

.card a {
    text-align: center;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.card .counter {
    display: flex;
    padding: 3px;
    justify-content: space-around;
}